package com.gxa.autoparts.admin.mapper;

import com.gxa.autoparts.core.pojo.Goods;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface GoodsMapper extends Mapper<Goods> {
    List<Map> selectByPidAndGoodsName(Long pid, String name, Integer page, Integer size);
    List<Goods> selectAllGoods(Integer page,Integer size);
    List<Goods> selectAllGoodsAll();
    void updateGoods(String name, Long typeId, Boolean state, String img, String detail, Date updateTime,Double salePrice,Double remarkPrice,Long goodsId);
}
